import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:native_dart_package/global.dart';
import 'package:yt_devops/components/gaps.dart';
import 'package:yt_devops/components/log_utils.dart';
import 'package:yt_devops/components/yt_text_style.dart';
import 'package:yt_devops/resources/resources.dart';
import 'package:yt_devops/resources/str_res_keys.dart';
import 'package:yt_devops/styles/styles.dart';
import 'package:yt_devops/utils/navigate_utils.dart';
import '../../../routers/router_path.dart';
import 'splash_scren_controller.dart';

class SplashScreenPage extends GetView<SplashScrenController> {
    const SplashScreenPage({Key? key}) : super(key: key);

    @override
    Widget build(BuildContext context) {
        return  GetBuilder<SplashScrenController>(
            builder: (controller) => Scaffold(
                body: Container(
                    height: double.infinity,
                    width: double.infinity,
                    decoration: const BoxDecoration(
                        // color: Colors.red,
                        image: DecorationImage(
                            image: AssetImage('assets/images/splash.png'),
                            fit: BoxFit.cover,
                        ),
                    ),
                    child:Column(
                        children: [
                            SizedBox(
                                height: 318.h,
                            ),
                            Container(
                                alignment: Alignment.center,
                                child:   Text(
                                    ResKey.company.tr,style: ytTextStyle(fontSize: 22,fontWeight: FontWeight.w500),
                                ),
                            ),
                            SizedBox(
                                height: 6.h,
                            ),
                            Container(
                                alignment: Alignment.center,
                                child:   Text(
                                    ResKey.makeEnergySmarter.tr,
                                    style: ytTextStyle(fontSize: 14,fontWeight: FontWeight.normal,color: Colour.lightTextColor),
                                ),
                            ),
                        ],

                    )))
        );
    }
}
